import request from '@/utils/request'

export function getCustList (params) {
	return request({
		url: '/basic-api/zd/cust/getCustList',
		method: 'get',
		params
	})
}
export function getCustByCustId (custId) {
	return request({
		url: '/basic-api/zd/cust/getCustByCustId/' + custId,
		method: 'get'
	})
}
export function getTenCust (params) {
	return request({
		url: '/basic-api/zd/cust/getTenCust',
		method: 'get',
		params
	})
}

export function addCust (data) {
	return request({
		url: '/basic-api/zd/cust/add',
		method: 'post',
		data
	})
}

export function updateCust (data) {
	return request({
		url: '/basic-api/zd/cust/update',
		method: 'post',
		data
	})
}

export function removeCust (id) {
	return request({
		url: '/basic-api/zd/cust/remove/' + id,
		method: 'post',
	})
}
export function ifuse (id) {
	return request({
		url: '/basic-api/zd/cust/ifUse/' + id,
		method: 'post',
	})
}

